package bupt.party.online.model;

import java.sql.Timestamp;


/**
 * Student entity. @author MyEclipse Persistence Tools
 */

public class Student implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String studentNo;
	private String studentPassword;
	private String studentName;
	private String studentGender;
	private String studentIdentity;
	private String studentNationality;
	private Timestamp studentJoinPartyDate;
	private String studentTelephone;
	private String studentEmail;
	private Integer studentBranchId;
	private Integer isDelete;
	private Timestamp studentLatestLoginTime;
	private String studentLatestLoginIp;
	private Double studentLearnTime;
	private Integer adminLevel;
	//新添加的一个属性
	private String studentBranchName;

	// Constructors

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(String studentNo, String studentPassword, String studentName,
			String studentGender, String studentIdentity,
			Integer studentBranchId, Integer isDelete,Timestamp studentLatestLoginTime,String studentLatestLoginIp,
			Double studentLearnTime) {
		this.studentNo = studentNo;
		this.studentPassword = studentPassword;
		this.studentName = studentName;
		this.studentGender = studentGender;
		this.studentIdentity = studentIdentity;
		this.studentBranchId = studentBranchId;
		this.isDelete = isDelete;
		this.studentLatestLoginTime = studentLatestLoginTime;
		this.studentLatestLoginIp = studentLatestLoginIp;
		this.studentLearnTime = studentLearnTime;
	}

	/** full constructor */
	public Student(String studentNo, String studentPassword, String studentName,
			String studentGender, String studentIdentity,
			String studentNationality, Timestamp studentJoinPartyDate,
			String studentTelephone, String studentEmail,
			Integer studentBranchId, Integer isDelete,Timestamp studentLatestLoginTime,String studentLatestLoginIp,
			Double studentLearnTime,Integer adminLevel) {
		this.studentNo = studentNo;
		this.studentPassword = studentPassword;
		this.studentName = studentName;
		this.studentGender = studentGender;
		this.studentIdentity = studentIdentity;
		this.studentNationality = studentNationality;
		this.studentJoinPartyDate = studentJoinPartyDate;
		this.studentTelephone = studentTelephone;
		this.studentEmail = studentEmail;
		this.studentBranchId = studentBranchId;
		this.isDelete = isDelete;
		this.studentLatestLoginTime = studentLatestLoginTime;
		this.studentLatestLoginIp = studentLatestLoginIp;
		this.studentLearnTime = studentLearnTime;
		this.adminLevel = adminLevel;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStudentNo() {
		return this.studentNo;
	}

	public void setStudentNo(String studentNo) {
		this.studentNo = studentNo;
	}

	public String getstudentPassword() {
		return this.studentPassword;
	}

	public void setstudentPassword(String studentPassword) {
		this.studentPassword = studentPassword;
	}

	public String getStudentName() {
		return this.studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getStudentGender() {
		return this.studentGender;
	}

	public void setStudentGender(String studentGender) {
		this.studentGender = studentGender;
	}

	public String getStudentIdentity() {
		return this.studentIdentity;
	}

	public void setStudentIdentity(String studentIdentity) {
		this.studentIdentity = studentIdentity;
	}

	public String getStudentNationality() {
		return this.studentNationality;
	}

	public void setStudentNationality(String studentNationality) {
		this.studentNationality = studentNationality;
	}

	public Timestamp getStudentJoinPartyDate() {
		return this.studentJoinPartyDate;
	}

	public void setStudentJoinPartyDate(Timestamp studentJoinPartyDate) {
		this.studentJoinPartyDate = studentJoinPartyDate;
	}

	public String getStudentTelephone() {
		return this.studentTelephone;
	}

	public void setStudentTelephone(String studentTelephone) {
		this.studentTelephone = studentTelephone;
	}

	public String getStudentEmail() {
		return this.studentEmail;
	}

	public void setStudentEmail(String studentEmail) {
		this.studentEmail = studentEmail;
	}

	public Integer getStudentBranchId() {
		return this.studentBranchId;
	}

	public void setStudentBranchId(Integer studentBranchId) {
		this.studentBranchId = studentBranchId;
	}

	public Integer getIsDelete() {
		return this.isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}


	public Timestamp getStudentLatestLoginTime() {
		return studentLatestLoginTime;
	}
	
	public void setStudentLatestLoginTime(Timestamp studentLatestLoginTime) {
		this.studentLatestLoginTime = studentLatestLoginTime;
	}

	public String getStudentLatestLoginIp() {
		return studentLatestLoginIp;
	}

	public void setStudentLatestLoginIp(String studentLatestLoginIp) {
		this.studentLatestLoginIp = studentLatestLoginIp;
	}

	public Double getStudentLearnTime() {
		return studentLearnTime;
	}

	public void setStudentLearnTime(Double studentLearnTime) {
		this.studentLearnTime = studentLearnTime;
	}

	public Integer getAdminLevel() {
		return adminLevel;
	}

	public void setAdminLevel(Integer adminLevel) {
		this.adminLevel = adminLevel;
	}

	public String getStudentBranchName() {
		return studentBranchName;
	}

	public void setStudentBranchName(String studentBranchName) {
		this.studentBranchName = studentBranchName;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", studentNo=" + studentNo
				+ ", studentPassword=" + studentPassword + ", studentName="
				+ studentName + ", studentGender=" + studentGender
				+ ", studentIdentity=" + studentIdentity
				+ ", studentNationality=" + studentNationality
				+ ", studentJoinPartyDate=" + studentJoinPartyDate
				+ ", studentTelephone=" + studentTelephone + ", studentEmail="
				+ studentEmail + ", studentBranchId=" + studentBranchId
				+ ", isDelete=" + isDelete + ", studentLatestLoginTime="
				+ studentLatestLoginTime + ", studentLatestLoginIp="
				+ studentLatestLoginIp + ", studentLearnTime="
				+ studentLearnTime + ", adminLevel=" + adminLevel
				+ ", studentBranchName=" + studentBranchName + "]";
	}
	
	
}